import request from '@/utils/request'
//商品列表
export function commodityList(params) {
  return request({
    url: '/manager/commodity/topicFilter',
    method: 'post',
    data: params
  })
}
//年级列表
export function getGradeList() {
  return request({
    url: '/manager/grade/list',
    method: 'post'
  })
}
//科目列表
export function getSubjectList() {
  return request({
    url: '/manager/subject/list',
    method: 'post'
  })
}

//新增专题
export function addTopic(params) {
  return request({
    url: '/manager/commodityTopic/create',
    method: 'post',
    data: params
  })
}

//专题列表
export function topList(params) {
  return request({
    url: '/manager/commodityTopic/list',
    method: 'post',
    data: params
  })
}

//专题详情
export function topicDetail(params) {
  return request({
    url: '/manager/commodityTopic/detail',
    method: 'post',
    data: params
  })
}

//专题修改
export function topicAmend(params) {
  return request({
    url: '/manager/commodityTopic/modify',
    method: 'post',
    data: params
  })
}

//专题删除
export function topicDelete(params) {
  return request({
    url: '/manager/commodityTopic/operate',
    method: 'post',
    data: params
  })
}

